package com.cai.oamanager.service;

import com.cai.oamanager.entity.Message;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @version 1.0
 * @author：蔡松坡
 * @date：2021/1/18 21 : 45
 * @package：com.cai.oamanager.service
 */
public interface MessageService {
    /**发送消息**/
    List<Message> getSendMessage(String reciver, String sender, Integer start, Integer size);

    Message getSendMessageById(Integer mid);

    void deleteSendMessage(Integer mid);

    Integer getSendCountMessage(String sender);

    void sendMessage(Message message);

    /**接收**/

    List<Message> getReciverMessage(String reciver,Integer pid,String sender,Integer start, Integer size);

    Message getReciverMessageById(Integer mid);

    Integer getReciverCountMessage(String reciver);

    int getNewMessageCount(String oid,Integer opsitionid);

    int getNewReciveMessageCount(String oid,Integer opsitionid);

    void updateState(Integer mid);

    void updateCount(Integer count,Integer mid);

}
